import java.awt.image.BufferedImage;

//飞行物

public abstract class Flyer {
    //属性
    private int boold;//血量
    private int x,y;//坐标
    private int width,hight;//飞行物的长、宽
    private int speed;//速度
    private int bulletnum;//弹道数
    private int attack;
    private int createbulletspeed;//创建子弹的速度



    //    private int attack;//攻击力
    private int mode;//攻击模式
    //构造器

    public Flyer() {
    }

    public Flyer(int width, int hight, int x, int y,  int speed) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.hight = hight;
        this.speed = speed;
    }
    public Flyer(int width, int hight, int x, int y, int speed, int boold) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.hight = hight;
        this.speed = speed;
        this.boold = boold;
    }
    public Flyer(int width, int hight, int x, int y, int speed, int boold,int createbulletspeed) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.hight = hight;
        this.speed = speed;
        this.boold = boold;
        this.createbulletspeed = createbulletspeed;
    }


    //方法
    abstract  void Move();//移动
    abstract  BufferedImage getImage();//加载图片


    public int getBoold() {
        return boold;
    }

    public void setBoold(int boold) {
        this.boold = boold;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHight() {
        return hight;
    }

    public void setHight(int hight) {
        this.hight = hight;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getBulletnum() {
        return bulletnum;
    }

    public void setBulletnum(int bulletnum) {
        this.bulletnum = bulletnum;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getCreatebulletspeed() {
        return createbulletspeed;
    }

    public void setCreatebulletspeed(int createbulletspeed) {
        this.createbulletspeed = createbulletspeed;
    }

}
